package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectAcceptanceMapper;
import com.ruoyi.project.domain.ProjectAcceptance;
import com.ruoyi.project.service.IProjectAcceptanceService;

/**
 * 项目验收Service业务层处理
 * 
 * @author czj
 * @date 2025-01-06
 */
@Service
public class ProjectAcceptanceServiceImpl implements IProjectAcceptanceService 
{
    @Autowired
    private ProjectAcceptanceMapper projectAcceptanceMapper;

    /**
     * 查询项目验收
     * 
     * @param acceptanceId 项目验收主键
     * @return 项目验收
     */
    @Override
    public ProjectAcceptance selectProjectAcceptanceByAcceptanceId(Long acceptanceId)
    {
        return projectAcceptanceMapper.selectProjectAcceptanceByAcceptanceId(acceptanceId);
    }

    /**
     * 查询项目验收列表
     * 
     * @param projectAcceptance 项目验收
     * @return 项目验收
     */
    @Override
    public List<ProjectAcceptance> selectProjectAcceptanceList(ProjectAcceptance projectAcceptance)
    {
        return projectAcceptanceMapper.selectProjectAcceptanceList(projectAcceptance);
    }

    /**
     * 新增项目验收
     * 
     * @param projectAcceptance 项目验收
     * @return 结果
     */
    @Override
    public int insertProjectAcceptance(ProjectAcceptance projectAcceptance)
    {
        return projectAcceptanceMapper.insertProjectAcceptance(projectAcceptance);
    }

    /**
     * 修改项目验收
     * 
     * @param projectAcceptance 项目验收
     * @return 结果
     */
    @Override
    public int updateProjectAcceptance(ProjectAcceptance projectAcceptance)
    {
        return projectAcceptanceMapper.updateProjectAcceptance(projectAcceptance);
    }

    /**
     * 批量删除项目验收
     * 
     * @param acceptanceIds 需要删除的项目验收主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceByAcceptanceIds(Long[] acceptanceIds)
    {
        return projectAcceptanceMapper.deleteProjectAcceptanceByAcceptanceIds(acceptanceIds);
    }

    /**
     * 删除项目验收信息
     * 
     * @param acceptanceId 项目验收主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceByAcceptanceId(Long acceptanceId)
    {
        return projectAcceptanceMapper.deleteProjectAcceptanceByAcceptanceId(acceptanceId);
    }
}
